package Work;

public class TestStack {
	public static void main(String[] args) {
		
		int size = 3;		
		Stack stack = new Stack(size);
		
		stack.push("a");
		stack.prnStack();
		stack.push("b");
		stack.prnStack();
		
		for(int i=3;i>0;i--){
			System.out.print(stack.pop());
		}
		for(int i=97;i<=100;i++){
			stack.push(String.format("%c", i));
			stack.prnStack();
		}
	}
}
